/**
 * 字体样式文件
 */

/* 引入外部字体 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* 自定义字体 */
@font-face {
  font-family: 'PingFang SC';
  src: url('./PingFangSC-Regular.woff2') format('woff2'),
       url('./PingFangSC-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PingFang SC';
  src: url('./PingFangSC-Medium.woff2') format('woff2'),
       url('./PingFangSC-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PingFang SC';
  src: url('./PingFangSC-Semibold.woff2') format('woff2'),
       url('./PingFangSC-Semibold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* 代码字体 */
@font-face {
  font-family: 'Fira Code';
  src: url('./FiraCode-Regular.woff2') format('woff2'),
       url('./FiraCode-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* 全局字体设置 */
:root {
  --font-family-primary: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-family-mono: "Fira Code", "Monaco", "Consolas", "Courier New", monospace;
  --font-family-serif: "Times New Roman", "Georgia", serif;
}

body {
  font-family: var(--font-family-primary);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
}
